package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.DeviceDataPageReqDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceDataVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * wangcong
 * 2025/2/13 10:21
 */
@Mapper
public interface DeviceDataMapper {
    Page<DeviceDataVo> queryPage(DeviceDataPageReqDto deviceDataPageReqDto);

    List<DeviceDataGraphVo> queryDeviceDataListByDay(String iotId, String functionId, LocalDateTime start, LocalDateTime end);

    List<DeviceDataGraphVo> queryDeviceDataListByWeek(@Param("iotId") String iotId,@Param("functionId") String functionId,@Param("start") LocalDateTime start,@Param("end") LocalDateTime end);
}
